

<div class="clearfix"></div>
<div class="content">  
    <div class="row">
        <div class="col-md-10 col-vlg-7">
            <ul class="cbp_tmtimeline">

                <?php
                if ($movimientos) {
                    foreach ($movimientos as $dato) {
                        ?>


                        <li>
                            <time class="cbp_tmtime" datetime="<?php echo $dato['fecha_creacion']; ?>">
                                <span class="date">
                                    <?php
                                    $date = new DateTime($dato['fecha_creacion']);
                                    echo $date->format('d-m-o');
                                    ?>
                                </span>
                                <span class="time">
                                    <?php
                                    $time = new DateTime($dato['fecha_creacion']);
                                    echo $time->format('G:i a');
                                    ?> <span class="semi-bold"></span>

                                </span>
                            </time>
                            <div class='cbp_tmicon primary animated bounceIn'> 
                                   <i class='fa  <?php echo $dato['icon']; ?>'></i>
                             </div>
                            <div class="cbp_tmlabel">
                                <div class="p-t-10 p-l-30 p-r-20 p-b-20 xs-p-r-10 xs-p-l-10 xs-p-t-5">
                                    <h4 class="inline m-b-5"><span class="text-success semi-bold"><?php echo $dato['apenom']; ?></span> </h4>
                                    <h5 class="inline muted semi-bold m-b-5"><?php echo $dato['usuario']; ?></h5>
                                    <div class="muted">
                                        Nro. documento: <?php echo $dato['documento']; ?> - 
                                        Estado Usuario:  <?php  if ($dato['activo']==1) echo "Activo"; else echo "Desactivado"; ?>  -
                                        Sector:  <?php  echo $dato['nombre']; ?>
                                    </div>
                                    <p class="m-t-5 dark-text"><?php echo $dato['descripcion']; ?></p>
                                </div>
                                <div class="clearfix"></div>

                            </div>
                        </li>

                        <?php
                    }
                }else {
                    ?>
                    <li>
                        <time class="cbp_tmtime" datetime="2013-04-10 18:30">
                            <span class="date">Actual</span>
                            <span class="time">00:00 <span class="semi-bold"></span></span>
                        </time>
                        <div class="cbp_tmicon success animated bounceIn"> <i class="fa fa-map-marker"></i> </div>
                        <div class="cbp_tmlabel">
                            <div class="p-t-10 p-l-30 p-r-20 p-b-20 xs-p-r-10 xs-p-l-10 xs-p-t-5">
                                <h4 class="inline m-b-5"><span class="text-success semi-bold">No Existe Movimiento</span> </h4>
                                <h5 class="inline muted semi-bold m-b-5"></h5>

                            </div>
                        </div>
                    </li>

                    <?php
                }
                ?>

            </ul>
        </div>
    </div>
</div>